package com.horay.springclouddemo.feign.nacos.fallback;

import com.horay.springclouddemo.feign.nacos.service.NacosClientService;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Class description
 *
 * @author heyingcheng
 * @date 2019/11/2 18:04
 */
public class NacosClientFallback implements NacosClientService {

    @Override
    public String echo(@PathVariable("string") String string) {
        return "echo fallback";
    }

    @Override
    public String divide(@RequestParam Integer a, @RequestParam Integer b) {
        return "divide fallback";
    }

    @Override
    public String notFound() {
        return "notFound fallback";
    }

}